package com.Excrises;

import java.math.BigInteger;

import java.util.Scanner;

public class AB {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for (int i = 1;i <=n;i++){
            String a = in.next();
            String b = in.next();
            BigInteger A = BigInteger.valueOf(Long.parseLong(a));
            BigInteger B = BigInteger.valueOf(Long.parseLong(b));
            System.out.println("Case "+ i + ":");
            System.out.println(A + " + " + B + " = " + A.add(B));
        }
    }
}
